#if !defined(AFX_DAYSTATISTICSDLG_H__73E0A0F5_7AAE_47D5_9E0D_9B1E259E6C63__INCLUDED_)
#define AFX_DAYSTATISTICSDLG_H__73E0A0F5_7AAE_47D5_9E0D_9B1E259E6C63__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DayStatisticsDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDayStatisticsDlg dialog

struct RecordAckStruct;
struct ReportItem;

class CDayStatisticsDlg : public CDialog
{
// Construction
public:
	CDayStatisticsDlg(CWnd* pParent = NULL);   // standard constructor
  void InitDialogForAnalog();
  void InitDialogForDigital();
  void InsertStatisticsToListCtrl(const std::vector<ReportItem *>& StatisticsResult);
  void InsertAnalogStatisticsToListCtrl(const std::vector<ReportItem *>& StatisticsResult);
  void InsertDigitalStatisticsToListCtrl(const std::vector<ReportItem *>& StatisticsResult);
  void TakeStatistics();
  void DeleteStatisticsResult();

// Dialog Data
	//{{AFX_DATA(CDayStatisticsDlg)
	enum { IDD = IDD_DIALOG_DAYSTAT };
	CListCtrl	m_listctrl;
	CString	m_strCoalMineName;
	CString	m_strMonUnitId;
	CString	m_strMonUnitName;
	CString	m_strTime;
	//}}AFX_DATA
  RecordAckStruct * m_pRecordAckStruct;
  std::vector<ReportItem *> m_StatisticsResult;


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDayStatisticsDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDayStatisticsDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnExport();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DAYSTATISTICSDLG_H__73E0A0F5_7AAE_47D5_9E0D_9B1E259E6C63__INCLUDED_)
